<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>汽车对象</title>
	</head>
	<body>
		<h1>保时捷718 Cayman T,红色,641000元</h1>
		<script>
			var car = {
				name: "保时捷718",
				note: "这车很不错!",
				toString: function(){
					return this.name + "," +this.note;
				}
			}
			console.log(car);
			car.type = "Cayman T";
			car.color = "红色";
			car.price = 641000 + "元";
			
			car.show = function(){
				return this.name+','+this.type+','+this.color+','+this.price+','+this.note
			}
			
			console.log(car);
			console.log(car.toString());
			console.log(car.show());
		</script>
	</body>
</html>
